import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export function CreateRouter() {
	return new Router({
		mode: 'history',
		routes: [{
				path: '/',
				component: () => import (/* webpackChunkName: 'home' */ './page/Home.vue')
			},
			{
				path: '/Foo',
				component: () => import (/* webpackChunkName: 'Foo' */ './page/Foo.vue')
			},
			{
				path: '/shop',
				name: 'shop',
				component: () => import (/* webpackChunkName: 'Foo' */ './page/shop.vue')
			},
			{
				path: '/myShop',
				name: 'myShop',
				component: () => import (/* webpackChunkName: 'Foo' */ './page/myShop.vue')
			}
		]
	})
}
